package com.ruoyi.app.interceptor;


import com.ruoyi.cms.domain.CrmMember;
import com.ruoyi.employee.domain.CrmEmployee;

public class SessionUtil {
    private  static ThreadLocal<String> strLocal = new ThreadLocal<>();

    private static ThreadLocal<CrmMember> farmUserLocal = new ThreadLocal<>();


    public static void setlocalStr(String str) {
        strLocal.set(str);
    }

    public static String getlocalStr() {
        return strLocal.get();
    }


    public static void setLoginUser(CrmMember obj) {
        farmUserLocal.set(obj);
    }

    public static CrmMember getLoginUser() {
        return farmUserLocal.get();
    }

}
